package Boundry;

import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;

import Boundry.GenericTools.IPanelOperation;
import Boundry.GenericTools.InputPanel;
import javax.swing.SwingConstants;

public class WorkerPanel extends InputPanel implements IPanelOperation{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private JButton btnTaskInitiation;
	private JButton btnEvaluationRequest;
	private JButton btnNominateExaminer;
	private JButton btnReviewAndDecision;
	private JButton btnExecuteRequest;
	private JButton btnTesting;
	private JButton btnInspectorApproval;
	private JButton btnSuspendRequest;
	private JButton btnCloseRequest;
	private JButton btnSearchRequest;
	private JButton btnSubmitRequest;
	private JButton btnViewRequests;
	private JLabel lblInitiateTask;
	private JLabel lblSearchRequest;
	private JLabel lblEvaluateRequest;
	private JLabel lblNominateExaminer;
	private JLabel lblReviewAndDecision;
	private JLabel lblExecuteRequest;
	private JLabel lblTesting;
	private JLabel lblSubmitRequest;
	private JLabel lblViewRequest;
	private JLabel lblSuspendRequest;
	private JLabel lblCloseRequest;
	private JLabel lblInspectorApproval;
	private JLabel label;

	

	public JButton getBtnSubmitRequest() {
		return btnSubmitRequest;
	}

	public JButton getBtnSearchRequest() {
		return btnSearchRequest;
	}

	public JButton getBtnViewRequests() {
		return btnViewRequests;
	}

	

	public JButton getBtnTaskInitiation() {
		return btnTaskInitiation;
	}

	public void setBtnTaskInitiation(JButton btnTaskInitiation) {
		this.btnTaskInitiation = btnTaskInitiation;
	}


	public JButton getBtnEvaluationRequest() {
		return btnEvaluationRequest;
	}

	public void setBtnEvaluationRequest(JButton btnEvaluationRequest) {
		this.btnEvaluationRequest = btnEvaluationRequest;
	}

	public JButton getBtnNominateExaminer() {
		return btnNominateExaminer;
	}

	public void setBtnNominateExaminer(JButton btnNominateExaminer) {
		this.btnNominateExaminer = btnNominateExaminer;
	}

	public JButton getBtnReviewAndDecision() {
		return btnReviewAndDecision;
	}

	public void setBtnReviewAndDecision(JButton btnReviewAndDecision) {
		this.btnReviewAndDecision = btnReviewAndDecision;
	}

	public JButton getBtnExecuteRequest() {
		return btnExecuteRequest;
	}

	public void setBtnExecuteRequest(JButton btnExecuteRequest) {
		this.btnExecuteRequest = btnExecuteRequest;
	}

	public JButton getBtnTesting() {
		return btnTesting;
	}

	public void setBtnTesting(JButton btnTesting) {
		this.btnTesting = btnTesting;
	}

	public JButton getBtnInspectorApproval() {
		return btnInspectorApproval;
	}

	public void setBtnInspectorApproval(JButton btnApprovedenyTimeExtensions) {
		this.btnInspectorApproval = btnApprovedenyTimeExtensions;
	}

	public JButton getBtnSuspendRequest() {
		return btnSuspendRequest;
	}

	public void setBtnSuspendRequest(JButton btnSuspendRequest) {
		this.btnSuspendRequest = btnSuspendRequest;
	}

	public JButton getBtnCloseRequest() {
		return btnCloseRequest;
	}

	public void setBtnCloseRequest(JButton btnCloseRequest) {
		this.btnCloseRequest = btnCloseRequest;
	}

	public WorkerPanel() {
		
		btnTaskInitiation = new JButton("");
		btnTaskInitiation.setIcon(new ImageIcon(WorkerPanel.class.getResource("/ICONS/5_content_read.png")));
		btnTaskInitiation.setBounds(406, 109, 204, 39);
		btnTaskInitiation.setSize(100, 40);
		mainPanel.add(btnTaskInitiation);
		
		btnReviewAndDecision = new JButton("");
		btnReviewAndDecision.setIcon(new ImageIcon(WorkerPanel.class.getResource("/ICONS/9_av_make_available_offline.png")));
		btnReviewAndDecision.setBounds(406, 297, 204, 35);
		btnReviewAndDecision.setSize(100, 40);
		mainPanel.add(btnReviewAndDecision);
		
		btnTesting = new JButton("");
		btnTesting.setIcon(new ImageIcon(WorkerPanel.class.getResource("/ICONS/2_action_settings.png")));
		btnTesting.setBounds(547, 169, 204, 35);
		btnTesting.setSize(100, 40);
		mainPanel.add(btnTesting);
		
		btnEvaluationRequest = new JButton("");
		btnEvaluationRequest.setIcon(new ImageIcon(WorkerPanel.class.getResource("/ICONS/4_collections_sort_by_size.png")));
		btnEvaluationRequest.setBounds(406, 169, 204, 39);
		btnEvaluationRequest.setSize(100, 40);
		mainPanel.add(btnEvaluationRequest);
		
		btnInspectorApproval = new JButton("");
		btnInspectorApproval.setIcon(new ImageIcon(WorkerPanel.class.getResource("/ICONS/10_device_access_alarms.png")));
		btnInspectorApproval.setBounds(547, 230, 194, 35);
		btnInspectorApproval.setSize(100, 40);
		mainPanel.add(btnInspectorApproval);
		
		btnNominateExaminer = new JButton("");
		btnNominateExaminer.setIcon(new ImageIcon(WorkerPanel.class.getResource("/ICONS/6_social_add_person.png")));
		btnNominateExaminer.setBounds(406, 230, 204, 37);
		btnNominateExaminer.setSize(100, 40);
		mainPanel.add(btnNominateExaminer);
		
		btnSuspendRequest = new JButton("");
		btnSuspendRequest.setIcon(new ImageIcon(WorkerPanel.class.getResource("/ICONS/9_av_pause.png")));
		btnSuspendRequest.setBounds(268, 233, 194, 39);
		btnSuspendRequest.setSize(100, 40);
		mainPanel.add(btnSuspendRequest);
		
		btnCloseRequest = new JButton("");
		btnCloseRequest.setIcon(new ImageIcon(WorkerPanel.class.getResource("/ICONS/5_content_discard.png")));
		btnCloseRequest.setBounds(268, 297, 194, 39);
		btnCloseRequest.setSize(100, 40);
		mainPanel.add(btnCloseRequest);
		
		btnExecuteRequest = new JButton("");
		btnExecuteRequest.setIcon(new ImageIcon(WorkerPanel.class.getResource("/ICONS/12_hardware_keyboard.png")));
		btnExecuteRequest.setBounds(547, 109, 204, 35);
		btnExecuteRequest.setSize(100, 40);
		mainPanel.add(btnExecuteRequest);
		
		btnSearchRequest = new JButton("");
		btnSearchRequest.setIcon(new ImageIcon(WorkerPanel.class.getResource("/ICONS/2_action_search.png")));
		btnSearchRequest.setBounds(268, 109, 200, 23);
		btnSearchRequest.setSize(100, 40);
		mainPanel.add(btnSearchRequest);
		
		btnViewRequests = new JButton("");
		btnViewRequests.setIcon(new ImageIcon(WorkerPanel.class.getResource("/ICONS/10_device_access_storage.png")));
		btnViewRequests.setBounds(547, 297, 200, 37);
		btnViewRequests.setSize(100, 40);
		mainPanel.add(btnViewRequests);
		
		btnSubmitRequest = new JButton("");
		btnSubmitRequest.setIcon(new ImageIcon(WorkerPanel.class.getResource("/ICONS/5_content_new_email.png")));
		btnSubmitRequest.setBounds(268, 173, 200, 37);
		btnSubmitRequest.setSize(100, 40);
		mainPanel.add(btnSubmitRequest);
		
		lblInitiateTask = new JLabel("Initiate Task");
		lblInitiateTask.setHorizontalAlignment(SwingConstants.CENTER);
		lblInitiateTask.setIcon(null);
		lblInitiateTask.setBounds(406, 145, 100, 27);
		
		mainPanel.add(lblInitiateTask);
		
		lblSearchRequest = new JLabel("Search Request");
		lblSearchRequest.setHorizontalAlignment(SwingConstants.CENTER);
		lblSearchRequest.setBounds(268, 151, 100, 14);
		mainPanel.add(lblSearchRequest);
		
		lblEvaluateRequest = new JLabel("Evaluate Request");
		lblEvaluateRequest.setHorizontalAlignment(SwingConstants.CENTER);
		lblEvaluateRequest.setBounds(392, 209, 128, 14);
		mainPanel.add(lblEvaluateRequest);
		
		lblNominateExaminer = new JLabel("Nominate Examiner");
		lblNominateExaminer.setHorizontalAlignment(SwingConstants.CENTER);
		lblNominateExaminer.setBounds(378, 267, 159, 14);
		mainPanel.add(lblNominateExaminer);
		
		lblReviewAndDecision = new JLabel("Review and Decision");
		lblReviewAndDecision.setHorizontalAlignment(SwingConstants.CENTER);
		lblReviewAndDecision.setBounds(392, 339, 128, 14);
		mainPanel.add(lblReviewAndDecision);
		
		lblExecuteRequest = new JLabel("Execute Request");
		lblExecuteRequest.setHorizontalAlignment(SwingConstants.CENTER);
		lblExecuteRequest.setBounds(533, 151, 128, 14);
		mainPanel.add(lblExecuteRequest);
		
		lblTesting = new JLabel("Testing");
		lblTesting.setHorizontalAlignment(SwingConstants.CENTER);
		lblTesting.setBounds(547, 209, 100, 14);
		mainPanel.add(lblTesting);
		
		lblSubmitRequest = new JLabel("Submit Request");
		lblSubmitRequest.setHorizontalAlignment(SwingConstants.CENTER);
		lblSubmitRequest.setBounds(268, 215, 113, 14);
		mainPanel.add(lblSubmitRequest);
		
		lblViewRequest = new JLabel("View requests");
		lblViewRequest.setHorizontalAlignment(SwingConstants.CENTER);
		lblViewRequest.setBounds(533, 339, 128, 14);
		mainPanel.add(lblViewRequest);
		
		lblSuspendRequest = new JLabel("Suspend Request");
		lblSuspendRequest.setHorizontalAlignment(SwingConstants.CENTER);
		lblSuspendRequest.setBounds(256, 273, 126, 14);
		mainPanel.add(lblSuspendRequest);
		
		lblCloseRequest = new JLabel("Close Request");
		lblCloseRequest.setHorizontalAlignment(SwingConstants.CENTER);
		lblCloseRequest.setBounds(256, 339, 126, 14);
		mainPanel.add(lblCloseRequest);
		
		lblInspectorApproval = new JLabel("Inspector Approval");
		lblInspectorApproval.setHorizontalAlignment(SwingConstants.CENTER);
		lblInspectorApproval.setBounds(515, 272, 181, 14);
		mainPanel.add(lblInspectorApproval);
		
		label = new JLabel("");
		label.setIcon(new ImageIcon(WorkerPanel.class.getResource("/ICONS/\u05D1\u05E8\u05D0\u05D5\u05D3\u05D4.jpg")));
		label.setBounds(10, 11, 153, 146);
		mainPanel.add(label);
		
		
		
		this.hideButtons();
		
		
	}

	public JPanel getMainPanel()
	{
		return mainPanel;	
	}
	@Override
	public String apHelpButton() {
		return "Here any worker can preform his operations";
	}

	@Override
	public String setTitle() {
		return ("Worker Window");
	}
	
	
	
}
